package com.CreationalPartterns.StaticFactoryMethod;

public class Div extends Operation {

	public double getResult(){
		if(Math.abs(super.getNum2()-0.0000000001)<0)
			System.out.println("error:the second number is 0!");
		else
			return super.getNum1()/super.getNum2();
		return -1;
	}
}
